From: Stefan Monnier Date: Thu, 10 Sep 2009 03:20:51 +0000 (+0000) Subject: (display_mode_element): Move list length limit from 50 to X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10597 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=15a06a99d2be8895c10e9f93b27dc2ebaaa0c1d9;p=emacs.git (display_mode_element): Move list length limit from 50 to 5000 (see thread starting with ). --- diff --git a/src/ChangeLog b/src/ChangeLog index 53363138262..7d125a0ef94 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-09-10 Stefan Monnier + + * xdisp.c (display_mode_element): Move list length limit from 50 to + 5000 (see thread starting with ). + 2009-09-09 Stefan Monnier * nsfont.m (ns_get_family): Don't force first letter to uppercase. diff --git a/src/xdisp.c b/src/xdisp.c index f67081a959d..9108ab6bf72 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -17750,8 +17750,12 @@ display_mode_element (it, depth, field_width, precision, elt, props, risky) } else if (STRINGP (car) || CONSP (car)) { - register int limit = 50; - /* Limit is to protect against circular lists. */ + register int limit = 5000; + /* Limit is to protect against circular lists. + The limit used to be 50, but if you use enough minor modes, + minor-mode-alist will easily grow past 50. Circular lists + are rather unlikely, so it's better for the limit to be + "too large" rather than "too small". */ while (CONSP (elt) && --limit > 0 && (precision <= 0 || n < precision))